//app.js
App({
  onLaunch: function () {

      // 公共数据
    this.globalData = {
      StatusBar:0,
	  username:"魔仙堡的花仙子",
	  college: "信息技术学院",
	  userImg: "../../images/temp.png",
    }

    wx.getSystemInfo({
      success: e => {
        this.globalData.StatusBar = e.statusBarHeight;
		
        let custom = wx.getMenuButtonBoundingClientRect();
        // console.log('this.globalData.StatusBar', this.globalData.StatusBar);
        // console.log(e)
		this.globalData.windowHeight = e.windowHeight;
		this.globalData.windowWidth = e.windowWidth;
        this.globalData.Custom = custom;  
        this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
		// console.log('this.globalData.Custom', this.globalData.Custom);
		// console.log('this.globalData.CustomBar',this.globalData.CustomBar)
      }
    })

    
  }
})
